package com.lzx.spring3.service.web;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lzx.spring3.dao.UserDao;
import com.lzx.spring3.meta.User;
import com.lzx.spring3.service.UserService;

@Service("userService")
public class UserServiceImpl extends BaseService implements UserService {

	@Resource
	private UserDao userDao;

	public int addUser(User user) {
		int ret = userDao.add(user);
		// int i = 1 / 0;
		return ret;
	}

	public int deleteAllUser() {
		return userDao.deleteAll();
	}

	public List<User> getUserList() {
		return userDao.getUserList();
	}

}
